package com.object.JSON;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;
import java.util.List;

public class Body {
    @JSONField(name = "Name", ordinal = 1)
    private String Name;

    @JSONField(name = "EndDate", ordinal = 2)
    private String EndTime;

    @JSONField(name = "UniqName", ordinal = 3)
    private String UniqName;

    @JSONField(name = "PubDomain", ordinal = 4)
    private String PubDomain;

    @JSONField(name = "App", ordinal = 5)
    private String App;

    @JSONField(name = "Preset", ordinal = 6)
    private String Preset;

    @JSONField(name = "StreamID", ordinal = 7)
    private String StreamID;

    @JSONField(name = "SrcInfo", ordinal = 8)
    private List<SrcInfo> srcInfo = new ArrayList<SrcInfo>();

    @JSONField(name = "DurationHour", ordinal = 9)
    private int DuraTime;

    public Body(String Name, String EndTime, String UniqName, String PubDomain, String App, String Preset, String StreamID, List<SrcInfo> srcInfo, int DuraTime) {
        super();
        this.Name = Name;
        this.EndTime = EndTime;
        this.UniqName = UniqName;
        this.PubDomain = PubDomain;
        this.App = App;
        this.Preset = Preset;
        this.StreamID = StreamID;
        this.srcInfo = srcInfo;
        this.DuraTime = DuraTime;
    }


    // 标准的 Getter 和 Setter
    public List<SrcInfo> getSrcInfo() {return srcInfo;}

    public void setSrcInfo(List<SrcInfo> srcInfo) {this.srcInfo = srcInfo;}

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getEndTime() {
        return EndTime;
    }

    public void setEndTime(String endTime) {
        EndTime = endTime;
    }

    public String getUniqName() {
        return UniqName;
    }

    public void setUniqName(String uniqName) {
        UniqName = uniqName;
    }

    public String getPubDomain() {
        return PubDomain;
    }

    public void setPubDomain(String pubDomain) {
        PubDomain = pubDomain;
    }

    public String getApp() {
        return App;
    }

    public void setApp(String app) {
        App = app;
    }

    public String getPreset() {
        return Preset;
    }

    public void setPreset(String preset) {
        Preset = preset;
    }

    public String getStreamID() {
        return StreamID;
    }

    public void setStreamID(String streamID) {
        StreamID = streamID;
    }

    public int getDuraTime() {
        return DuraTime;
    }

    public void setDuraTime(int duraTime) {
        DuraTime = duraTime;
    }
}
